<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>game</title>
    <link rel="stylesheet" href="style.css" type="text/css" />
    <script src="rand.js"></script>
    <style>
        .box {
            width: 300px;
            /* height: 400px; */
            margin: 0 auto;
            border: 1px solid red;
            text-align: center;
        }

        .timeOut {
            float: left;
            margin: 20px;
        }

        .fen {
            float: right;
            margin: 20px 0;
        }

        .score {
            float: right;
            margin: 20px 10px;
        }

        h1 {
            font-size: 100px;
            line-height: 100px;
        }

        .color {
            font-size: 20px;
            margin: 0 15px;
            cursor: pointer;
        }

        input {
            margin: 20px;
        }
    </style>
</head>

<body>
    <div class="box">
        <span class="timeOut">0</span>
        <span class="score">0</span>
        <span class="fen">分数：</span>
        <h1>字</h1>
        <p>请从下方颜色选择与上面文字颜色相同的颜色</p>
        <span class="color">红</span>
        <span class="color">红</span>
        <span class="color">红</span>
        <span class="color">红</span>
        <span class="color">红</span>
        <input type="button" value="开始游戏">
    </div>
    <script src="script.js"></script>
</body>

</html>